package com.java.struts.comment.eneity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "foodcommentinfo", schema = "isfull", catalog = "")
public class FoodcommentinfoEntity {
    private int fid;
    private int meid;
    private String fComments;

    @Id
    @Column(name = "Fid")
    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }

    @Basic
    @Column(name = "Meid")
    public int getMeid() {
        return meid;
    }

    public void setMeid(int meid) {
        this.meid = meid;
    }

    @Basic
    @Column(name = "FComments")
    public String getfComments() {
        return fComments;
    }

    public void setfComments(String fComments) {
        this.fComments = fComments;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FoodcommentinfoEntity that = (FoodcommentinfoEntity) o;
        return fid == that.fid &&
                meid == that.meid &&
                Objects.equals(fComments, that.fComments);
    }

    @Override
    public int hashCode() {

        return Objects.hash(fid, meid, fComments);
    }
}
